package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * 华策配置信息
 */
@Component
@DisconfFile(targetDirPath = "disconf", filename = "huache.properties")
public class HuaCheProperties {

    private String baseUrl;

    private String apiVersion;

    private String clientId;
    /**
     * 5.3.8 支付宝信息
     */
    private String alipayAppCode;
    /**
     * 5.4.8 smart 评分大额版信息
     */
    private String smartBigAmtAppCode;
    /**
     * 5.8.3 微信信息核查
     */
    private String weixinAppCode;

    /**
     * 连接超时（调用者按需要设置）
     */
    private int connectTimeoutMs;
    /**
     * 读超时（调用者按需要设置）
     */
    private int readTimeoutMs;

    @DisconfFileItem(name = "huache.baseUrl", associateField = "baseUrl")
    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    @DisconfFileItem(name = "huache.apiVersion", associateField = "apiVersion")
    public String getApiVersion() {
        return apiVersion;
    }

    public void setApiVersion(String apiVersion) {
        this.apiVersion = apiVersion;
    }

    @DisconfFileItem(name = "huache.clientId", associateField = "clientId")
    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    @DisconfFileItem(name = "huache.alipayAppCode", associateField = "alipayAppCode")
    public String getAlipayAppCode() {
        return alipayAppCode;
    }

    public void setAlipayAppCode(String alipayAppCode) {
        this.alipayAppCode = alipayAppCode;
    }

    @DisconfFileItem(name = "huache.smartBigAmtAppCode", associateField = "smartBigAmtAppCode")
    public String getSmartBigAmtAppCode() {
        return smartBigAmtAppCode;
    }

    public void setSmartBigAmtAppCode(String smartBigAmtAppCode) {
        this.smartBigAmtAppCode = smartBigAmtAppCode;
    }

    @DisconfFileItem(name = "huache.weixinAppCode", associateField = "weixinAppCode")
    public String getWeixinAppCode() {
        return weixinAppCode;
    }

    public void setWeixinAppCode(String weixinAppCode) {
        this.weixinAppCode = weixinAppCode;
    }

    @DisconfFileItem(name = "huache.connectTimeoutMs", associateField = "connectTimeoutMs")
    public int getConnectTimeoutMs() {
        return connectTimeoutMs;
    }

    public void setConnectTimeoutMs(int connectTimeoutMs) {
        this.connectTimeoutMs = connectTimeoutMs;
    }

    @DisconfFileItem(name = "huache.readTimeoutMs", associateField = "readTimeoutMs")
    public int getReadTimeoutMs() {
        return readTimeoutMs;
    }

    public void setReadTimeoutMs(int readTimeoutMs) {
        this.readTimeoutMs = readTimeoutMs;
    }
}


